var _mm = require('util/mm.js');
var _product = {
    // 获取商品列表
    productList : function(listParam,resolve,reject){
        _mm.request({
            url : _mm.getServerUrl('/product/list.do'),
            data: listParam,
            success : resolve,
            error : reject
        })
    },
    // 获取商品详情
    productDetail : function(productId,resolve,reject){
        _mm.request({
            url : _mm.getServerUrl('/product/detail.do'),
            data : productId,
            success : resolve,
            error : reject
        })
    }

}
module.exports = _product;